package com.hackaton.discounts;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class LatestActivity extends Activity {
	private ListView listView;
	private ArrayList<Discount> list; 
	ListAdapter adapter;
    protected void onCreate(Bundle savedInstanceState){
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.latest);
    	listView=(ListView)findViewById(R.id.listLatest);
    	listView.setOnItemClickListener(new OnItemClickListener(){

			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
					long arg3) {
				/*
				 Intent i=new Intent(this, DetailedView.class);
				 */
			}
    		
    	});
    	list=getData();
    	adapter=new ListAdapter(this, list);
    	listView.setAdapter(adapter);
    }
    public ArrayList<Discount> getData(){
    	return null;
    }
}
